
import request from '@/utils/request'

// 查询门派列表
export function listSect(query) {
    return request({
        url: '/jx3/sect/list',
        method: 'get',
        params: query
    })
}

// 查询门派详细
export function getSect(id) {
    return request({
        url: '/jx3/sect/' + id,
        method: 'get'
    })
}

// 新增门派配置
export function addSect(data) {
    return request({
        url: '/jx3/sect/add',
        method: 'post',
        data: data
    })
}

// 修改门派配置
export function updateSect(data) {
    return request({
        url: '/jx3/sect/update',
        method: 'post',
        data: data
    })
}

// 删除门派配置
export function delSect(id) {
    return request({
        url: '/jx3/sect/' + id,
        method: 'delete'
    })
}